-- CALC_SKY_FIGHTER_ATTACK
-- 战队的攻击力

return function(fighter)
    local hp = fighter.dbase:query("hp", 0);
    local fightAbility = fighter.dbase:query("fight_ability", 0);
    local attack;

    if hp >= fightAbility then
        attack = math.modf(hp * 0.25);
    else
        attack = math.modf(fightAbility * 0.2 + hp * 0.05);
    end

    return attack;
end
